import { defineConfig } from 'vitepress'
import {sidebar} from "./sidebar.mts";
import {nav} from "./nav.mts";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "编程文库",
  description: "一个编程文档网站",
  themeConfig: {
    logo: '/img/logo.png',
    search: {
      provider: 'local'
    },
    // 顶部导航
    nav: nav,

    // 左侧菜单
    sidebar: sidebar,
    // 右侧目录
    outline: {
      level: [2, 6],
      label: '目录'
    },

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ],
    // 页脚
    footer: {
      message: '学无止境,学不致用',
      copyright: '2000.09.22 @BinSail',
    }
  }
})
